import React from 'react';
import {Table} from 'antd';
 const TableComp = function ({datasource,columns}) {
    return (
        <>
            <Table
                columns={columns}
                dataSource={datasource}
                bordered
                size="middle"
                pagination={false} tableLayout={'auto'}/>
        </>
    )

};

 export default TableComp;